<div class="card mb-3">
  <a href="/anime/<%= post._id %>"><img src="/img/<%= post.pic %>" width="100" alt="<%= post.title %>" /></a>
  <div class="card-body">
    <h5 class="card-title"><a href="/anime/<%= post._id %>"><%= post.title %></a></h5>
    <p class="card-text"><%- post.content %> | <%= post.cname %> | <%= post.original %> | <% (post.celebrity || '').toString().split(',').forEach(function(c){ %>
      <a href="<%= c %>"><%= c %></a>
    <% }) %></p>
    <p class="card-text">
      <small class="text-muted"><%= post.created_at %></small>
      <small class="text-muted">浏览(<%= post.pv || 0 %>)</small>
      <small class="text-muted">留言(<%= post.commentsCount || 0 %>)</small>
      <small class="text-muted">剧集(<%= post.epsCount || 0 %>)</small>
    </p>
    <div class="media text-muted pt-3">
      <a href="/user/<%= post.author._id %>"><img class="mr-2 rounded" src="/img/<%= post.author.avatar %>" alt="<%= post.author.name %>" data-holder-rendered="true" style="width: 32px; height: 32px;"></a>
      <div class="media-body pb-3 mb-0 small lh-125">
        <div class="d-flex justify-content-between align-items-center w-100">
          <strong class="text-gray-dark"><%= post.author.name %> | <%= ({m: '男', f: '女', x: '保密'})[post.author.gender] %></strong>
        </div>
        <span class="d-block"><%= post.author.bio %></span>
      </div>
      <% if (user && post.author._id && user._id.toString() === post.author._id.toString()) { %>
      <div class="btn-group">
        <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          操作
        </button>
        <div class="dropdown-menu">
          <a class="dropdown-item" href="/anime/<%= post._id %>/edit">编辑</a>
          <a class="dropdown-item" href="/anime/<%= post._id %>/remove">删除</a>
        </div>
      </div>
      <% } %>
    </div>
  </div>
</div>
